<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path;
%>
<!DOCTYPE html>
<html>
<body class="skin-blue">
<!-- header logo: style can be found in header.less -->


<!-- getHeader -->
<s:action name="getHeader" namespace="/privilege" executeResult="true"/>
<div class="wrapper row-offcanvas row-offcanvas-left">
    <!-- Left side column. contains the logo and sidebar -->

    <!-- getMenus -->
    <s:action name="getMenus" namespace="/privilege" executeResult="true"/>

    <!-- Right side column. Contains the navbar and content of the page -->
    <aside class="right-side">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>运营数据
                <small>每日营收</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                <li><a href="#">Tables</a></li>
                <li class="active">Data tables</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">

                        <div class="box">

                            <div class="box-body">

                                <form action="javascript:searchUser();" class="form-inline" name="searchForm">
                                <%--
                                 <div class="row"  align="center">

										<div class="col-md-4">
									     <div class="right col-xs-3 text-right">
									        <label for="">用户Id:</label>
									    </div>
									     <div class="right col-xs-6 text-left">
									          <input type="text" id="condition1"  class="form-control" style="width: 170px" placeholder="用户Id">
									    </div>
										</div>
										<div class="col-md-4">
									     <div class="right col-xs-3 text-right">
									        <label for="">用户号码:</label>
									    </div>
									     <div class="right col-xs-6 text-left">
									          <input type="text" id="condition1"  class="form-control" style="width: 170px" placeholder="用户Id">
									    </div>
										</div>
										
										<div class="col-md-4">
									     <div class="right col-xs-3 text-right">
									        <label for="">用户姓名:</label>
									    </div>
									     <div class="right col-xs-6 text-left">
									          <input type="text" id="condition1"  class="form-control" style="width: 170px" placeholder="用户Id">
									    </div>
										</div>
                                  </div>
                                    <br/>
                              --%>
                              <div class="row"  >
                   
						     <div class="col-md-4">
						     <div class="right col-xs-3 text-right">
						        <label for="">起始时间:</label>
						    </div>
						     <div class="right col-xs-6 text-left">
						        <div class="input-group">
						          <input type="text" class="form-control form_datetime" value="${search.orderCreateTimeStart}" id="orderCreateTimeStart" name="orderCreateTimeStart"  placeholder="">
						          <span class="input-group-addon" id="basic-addon2"><span class="glyphicon glyphicon-time" aria-hidden="true"></span></span>
						        </div>
						    </div>
						    </div>
						    
						    <div class="col-md-4">
						     <div class="right col-xs-3 text-right">
						        <label for="">结束时间:</label>
						    </div>
						    <div class="right col-xs-6 text-left">
						        <div class="input-group">
						          <input type="text" class="form-control form_datetime"  value="${search.orderCreateTimeEnd}"" id="orderCreateTimeEnd" name="orderCreateTimeEnd"  placeholder="">
						          <span class="input-group-addon" id="basic-addon2"><span class="glyphicon glyphicon-time" aria-hidden="true"></span></span>
						        </div>
						    </div>
						    </div>
						    
						    </div>
                                    <br/>
                                   <div class="row" align="center">
                                    <button type="submit" class="btn btn-info">查询</button>
                                    </div>
                                </form>
                            </div>
                            <!-- /.box-body -->
                        </div>
                        <!-- /.box -->
                    </div>
                    
                     <div class="box" id="listdetails">
                     <!-- 文章列表 -->
                        <form method="post" target="_self" action="" name="listForm">
                            <div class="box-body table-responsive" id="listDiv">
						
                                <s:property value="res" escape="false"/>
                            </div><!-- /.box-body -->
                        </form>
                    </div>

                </div>
            </div>

        </section><!-- /.content -->
    </aside><!-- /.right-side -->
</div><!-- ./wrapper -->
</body> 


<script type="text/javascript">


    //查询用户列表
    function searchUser() {


		  var start = $.trim($("#orderCreateTimeStart").val());
		  var end =  $.trim($("#orderCreateTimeEnd").val());
		  if(''==start){
			alert("请输入开始时间!");

			return;
		  }

		  if(''==end){
				alert("请输入结束时间!");

				return;
		  }
	    	
    	
          listTable.filter['orderCreateTimeStart'] = start;
          listTable.filter['orderCreateTimeEnd'] = end;
         listTable.action = "<%=basePath%>/report/ajaxQueryOrderReport.action";

         listTable.loadList();      
        $("#listDiv").listview('refresh');
    }
</script>

<head>
   <meta charset="UTF-8">
    <title>AdminLTE | Data Tables</title>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>

    <script type="text/javascript" src="<%=basePath%>/js/admin/utils.js"></script>
    <script type="text/javascript" src="<%=basePath%>/js/base/listtable.js"></script>
    <link href="../../css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
    <script type="text/javascript" src="../../js/jquery.min.js" charset="UTF-8"></script>
    <script type="text/javascript" src="../../js/bootstrap.min.js" charset="UTF-8"></script>
    <script type="text/javascript" src="../../js/bootstrap-datetimepicker.min.js" charset="UTF-8"></script>
    <script type="text/javascript" src="../../js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
</head>


<script type="text/javascript">
    $('.form_datetime').datetimepicker({
    	minView: "month", 
        weekStart: 1,
        todayBtn: 1,
        autoclose: 1,
        todayHighlight: 1,
        startView: 2,
        forceParse: 0,
        showMeridian: 1,
        autoclose: true,
        format: 'yyyy-mm-dd',
        language: 'zh-CN',
    });
</script>

</html>